#ifndef SHELLCOMMAND_H
#define SHELLCOMMAND_H

#include "Arduino.h"

typedef int(*FP_CMD)(void *arg, int argc, char *argv[]);

class ShellCommand
{
	public:
		const char *m_cmd_name;
		FP_CMD m_cmdfp;

		ShellCommand(){};
		ShellCommand(char *name, FP_CMD cmdfp);
		int exec_cmd(void *arg, int argc, char *argv[]);
};

#endif /* SHELLCOMMAND_H */
